// App 布局样式

.App {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
}

.i-layout {
  height: 100%;
  .i-sider {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    .i-sider-menu {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      box-shadow: 2px 0px 6px 0px rgba(0, 21, 41, 0.12);
      border-right: 1px solid #eee;
      &::-webkit-scrollbar {
        display: none;
      }
    }
    .logo {
      height: 48px;
      width: 100%;
      display: flex;
      flex-shrink: 0;
      color: #fff;
      align-items: center;
      justify-content: flex-start;
      padding-left: 16px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  .i-navbar {
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 66;
    .option-btn {
      font-size: 20px;
      transition: all 0.5s;
      &:hover {
        color: @primary-color;
        transform: rotate(180deg);
      }
    }
    .ant-tabs {
      .ant-tabs-nav {
        margin-bottom: 0;
        &::before {
          display: none;
        }
        .ant-tabs-nav-more {
          padding: 0 16px;
        }
        .ant-tabs-tab {
          padding: 3px 18px;
          height: 26px;
          border-radius: 13px;
          background: #fff;
          .ant-tabs-tab-remove {
            display: none;
            margin-left: 6px;
            padding: 0;
            width: 14px;
            height: 14px;
            line-height: 14px;
            font-size: 12px;
            color: #333;
            border-radius: 50%;
          }
          .ant-tabs-tab-remove:hover {
            color: #fff;
            background: rgba(0, 0, 0, 0.15);
          }
        }
        .ant-tabs-tab + .ant-tabs-tab {
          margin-left: 6px;
        }
        .ant-tabs-tab.ant-tabs-tab-active,
        .ant-tabs-tab.ant-tabs-tab-active:hover {
          background-color: @primary-color;
          border-color: @primary-color;
          .ant-tabs-tab-remove {
            color: #fff;
          }
          .ant-tabs-tab-remove:hover {
            color: #333;
            background: #fff;
          }
          .ant-tabs-tab-btn {
            color: #fff;
          }
        }
        .ant-tabs-tab:hover,
        .ant-tabs-tab.ant-tabs-tab-active:hover {
          .ant-tabs-tab-remove {
            display: block;
          }
        }
        .ant-tabs-tab:first-of-type {
          margin-left: 0 !important;
        }
      }
    }
  }

  .i-content {
    flex: 1;
    position: relative;
    padding: 16px 24px 16px 24px;
    overflow: hidden;
    & > div {
      position: relative;
      width: 100%;
      height: 100%;
      padding: 16px;
      background-color: #fff;
      overflow: auto;
    }
  }
}
